package com.itheima.service.impl;

import com.itheima.dao.StudentDao;
import com.itheima.dao.TeacherDao;
import com.itheima.dao.impl.StudentDaoImpl;
import com.itheima.service.StudentService;
import com.itheima.service.TeacherService;

public class TeacherServiceImpl implements TeacherService {
    private TeacherDao teacherDao;
    public TeacherServiceImpl(TeacherDao teacherDao){
        this.teacherDao = teacherDao;
    }
    @Override
    public void save() {
        System.out.println("TeacherServiceImpl  save");
        teacherDao.save();
    }
}
